package com.ls.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ls.entity.SysUser;
import com.ls.mapper.SysUserMapper;
import com.ls.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author TangQuanBin
 * @since 2019-09-13
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    /**
     * 用户mapper接口
     */
    @Autowired
    private SysUserMapper userMapper;


    /**
     * 根据账号查询用户
     *
     * @param account 账号
     * @return User
     */
    @Override
    public SysUser findUserByAccount(String account) {
        return userMapper.getUserByAccount(account);
    }



}
